<div class="post">
	<div class="post_title">
		<%= sanitize post.title %>
		<% unless hide_edit_links? %> <span style="float:right"> <%= link_to_unless_current 'Mostrar', blog_post_path(post.blog_id, post) %> |
			<%= link_to_unless_current 'Editar', edit_blog_post_path(post.blog_id, post) %> |
			<%= link_to 'Eliminar', blog_post_path(post.blog_id, post),
			:confirm => 'Deseas eliminar este post?', :method => :delete %>  |

			<% @favorites=Favorite.find(:all, :conditions => ["post_id=?",post]) %>
			<% if @favorites.size==0%>
			<%= link_to  image_tag("star_blank.png", :border => 0), star_path(:blog_id =>post.blog_id,:post=>post)%>
			<% else %>
			<%= link_to  image_tag("star.png", :border => 0), star_path(:blog_id =>post.blog_id,:post=>post)%>
			<% end %> </span>
		<% end %>
	</div>
	<div class="post_body">
		<%= sanitize post.body %>
	</div>
	<div class="painting">
		<%= image_tag post.image_url(:thumb) if post.image? %>
	</div>
	<div class="post_creation_date">
		Publicado <%= time_ago_in_words post.created_at %> ago
		<% if post.updated_at != post.created_at %>
		<br />
		Modificado <%= time_ago_in_words post.updated_at %> ago
		<% end %>
	</div>
	<div id="comments_for_post_<%= post.id %>">
		<%= render :partial => "comments/comment", :collection => post.comments %>
	</div>
	<% if logged_in? && is_friendship(@logged_in_user,@user) %>

	<div id="add_comment_link_for_post_<%= post.id %>">
		<%= link_to "Agregar comentario", new_blog_post_comment_path(post.blog, post), :remote=>true%>
	</div>
	<div id="new_comment_form_for_post_<%= post.id %>"></div>
	<% end %>
</div>
